package com.air.airbnb.modular.system.model;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 房间表
 * </p>
 *
 * @author zhihuian
 * @since 2018-12-06
 */
@TableName("airbnb_room")
public class AirbnbRoom extends Model<AirbnbRoom> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 房间标题
     */
    @TableField("room_title")
    private String roomTitle;
    /**
     * 房间类型
     */
    @TableField("room_type")
    private Integer roomType;
    /**
     * 空间
     */
    @TableField("room_space")
    private Integer roomSpace;
    /**
     * 房间互动
     */
    @TableField("room_interact")
    private String roomInteract;
    /**
     * 注意和实行
     */
    @TableField("room_attention")
    private String roomAttention;
    /**
     * 房间地址
     */
    @TableField("room_address")
    private String roomAddress;
    /**
     * 房间图片
     */
    @TableField("room_image")
    private String roomImage;
    /**
     * 价格
     */
    @TableField("room_price")
    private Double roomPrice;
    /**
     * 房东评论
     */
    @TableField("room_comment")
    private String roomComment;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getRoomTitle() {
        return roomTitle;
    }

    public void setRoomTitle(String roomTitle) {
        this.roomTitle = roomTitle;
    }

    public Integer getRoomType() {
        return roomType;
    }

    public void setRoomType(Integer roomType) {
        this.roomType = roomType;
    }

    public Integer getRoomSpace() {
        return roomSpace;
    }

    public void setRoomSpace(Integer roomSpace) {
        this.roomSpace = roomSpace;
    }

    public String getRoomInteract() {
        return roomInteract;
    }

    public void setRoomInteract(String roomInteract) {
        this.roomInteract = roomInteract;
    }

    public String getRoomAttention() {
        return roomAttention;
    }

    public void setRoomAttention(String roomAttention) {
        this.roomAttention = roomAttention;
    }

    public String getRoomAddress() {
        return roomAddress;
    }

    public void setRoomAddress(String roomAddress) {
        this.roomAddress = roomAddress;
    }

    public String getRoomImage() {
        return roomImage;
    }

    public void setRoomImage(String roomImage) {
        this.roomImage = roomImage;
    }

    public Double getRoomPrice() {
        return roomPrice;
    }

    public void setRoomPrice(Double roomPrice) {
        this.roomPrice = roomPrice;
    }

    public String getRoomComment() {
        return roomComment;
    }

    public void setRoomComment(String roomComment) {
        this.roomComment = roomComment;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "AirbnbRoom{" +
        ", id=" + id +
        ", roomTitle=" + roomTitle +
        ", roomType=" + roomType +
        ", roomSpace=" + roomSpace +
        ", roomInteract=" + roomInteract +
        ", roomAttention=" + roomAttention +
        ", roomAddress=" + roomAddress +
        ", roomImage=" + roomImage +
        ", roomPrice=" + roomPrice +
        ", roomComment=" + roomComment +
        "}";
    }
}
